<?php /* Smarty version Smarty-3.1.6, created on 2018-05-22 18:00:02
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\IntegralGoods\comments.html" */ ?>
<?php /*%%SmartyHeaderCode:671871925b03d859da0177-68203190%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'daa98817b53a2f202f6f238001063d72a9e5e0f3' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\\IntegralGoods\\comments.html',
      1 => 1526983197,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '671871925b03d859da0177-68203190',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5b03d859eed8f',
  'variables' => 
  array (
    'comments' => 0,
    'v' => 0,
    'total' => 0,
    'pagelist' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5b03d859eed8f')) {function content_5b03d859eed8f($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo @ADMIN_CSS_PATH;?>
style.css" rel="stylesheet" type="text/css" />
<!--<link href="<?php echo @CSS_PATH;?>
bootstrap.min.css" rel="stylesheet" type="text/css" />-->
<link href="<?php echo @ADMIN_CSS_PATH;?>
select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo @ADMIN_JS_PATH;?>
jquery.min.js"></script>
<style type="text/css">
.scbtn{ background-image:none!important;}
</style>
</head>

<body>

	
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
  	<div id="tab2" class="tabson">
    
    
    <table class="imgtable">
    
    <thead>
    <tr>
    <th>商品名</th>
    <th>订单号</th>
    <th>用户名</th>
    <th style="width: 300px;">图片</th>
    <th style="width: 400px;">内容</th>
    <th>状态</th>
    </tr>
    </thead>
    
    <tbody style="text-align: center;">
    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['comments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    <tr>
    <td>(<?php echo $_smarty_tpl->tpl_vars['v']->value['goods_uid'];?>
)<?php echo $_smarty_tpl->tpl_vars['v']->value['goods_name'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['order_uid'];?>
</td>
    <td>(<?php echo $_smarty_tpl->tpl_vars['v']->value['user_uid'];?>
)<?php echo $_smarty_tpl->tpl_vars['v']->value['user_name'];?>
</td>
    <td class="imgtd"><?php if ($_smarty_tpl->tpl_vars['v']->value['images']!=="/upload/"){?><img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['images'];?>
" style="width: 80px;height: 60px;"/><?php }?></td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</td>
    <?php if ($_smarty_tpl->tpl_vars['v']->value['status']==1){?>
    <td><button style="height:35px;margin-bottom: 17px;margin-top: 17px;background-color: lightgreen;" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" data-status="<?php echo $_smarty_tpl->tpl_vars['v']->value['status'];?>
" class="scbtn changes">通过</button></td>
    <?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==0){?>
    <td><button style="height:35px;margin-bottom: 17px;margin-top: 17px;background-color: orangered;" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" data-status="<?php echo $_smarty_tpl->tpl_vars['v']->value['status'];?>
" class="scbtn changes">禁止</button></td>
    <?php }?>
    </tr>
    <?php } ?>
    </tbody>
    </table>
    
    <div class="pagin">
    	<div class="message">共<i class="blue"><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</i>条记录，每页显示&nbsp;<i class="blue">10&nbsp;</i>条</div>
        <ul class="paginList">
        	<?php echo $_smarty_tpl->tpl_vars['pagelist']->value;?>

        </ul>
    </div>
    
    <!--<div>
    	<iframe name="kuaidi100" src="https://www.kuaidi100.com/frame/index.html" width="960" height="880" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
	</div>-->
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a class="close"></a></div>
        <!--<form action="<?php echo @__CONTROLLER__;?>
/sendgoods" method="post">-->
      <div class="tipinfo">
        <div class="tipright">
        <input type="text" class="dfinput" name="uid" id="uid" value="" placeholder="uid" style="display: none;"/>
        <input type="text" class="dfinput" name="delcom" id="delcom" placeholder="物流公司" style="width: 270px;margin-bottom: 30px;position:relative; left: 10%;"/>
        <input type="text" class="dfinput" name="delnum" id="delnum" placeholder="快递单号" style="width: 270px;position:relative; left: 10%;"/>
        </div>
        </div>
        
        <div class="tipbtn" style="position:relative; left: 5%;">
        <input name="" type="submit"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    	<!--</form>-->
    </div>
    </div>  
       
	</div> 
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	$(".changes").click(function(){
		var status=0;
		var data={
			uid:$(this).val(),
			status:($(this).text()=="通过"?1:0),
		};
		
		var t=$(this);
		console.log(t.data('status'));
//		$(this).css("background-color","red");
		$.post("<?php echo @__CONTROLLER__;?>
/changecommentsstatus", data, function(ret){
				console.log(ret);
				if(ret.errorcode){
					alert(ret.error);
				}else{
					if(data.status){
//						alert("dd")
						t.text("禁止");
						t.css("background-color","orangered");
					}else{
						t.text("通过");
						t.css("background-color","lightgreen");
					}
				}
			})
	})
	
	</script>
    </div>

</body>
</html>
<?php }} ?>